<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib uri="/tld/dictionary" prefix="dictionary"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="/tld/dictionary" prefix="dictionary"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${ctx}/static/css/demopage.css">
<title> 债券计算核心规则类调试画面</title>
</head>
<form:form action="${ctx}/testcalcloan/core_calc_rules" modelAttribute="testCalcLoanValue">
	<font color="red"><h4>本页参数全为必填项,否则回抛异常!本界面为测试界面没有做页面验证.</h4></font>
	<h1>当月利息计算公式(1 实际利率(月) = RATE(总期数，每月还款额，总合同金额) 类Excel Rate函数)</h1>
	*总还款期数:<input id="totalnumPayments" name="totalnumPayments" value="${testCalcLoanValue.totalnumPayments}"/><br>
	*每期固定还款额度:<input id="repaymentAmount" name="repaymentAmount" value="${testCalcLoanValue.repaymentAmount}"/><br>
	*总还款本金:<input id="debtAmount" name="debtAmount" value="${testCalcLoanValue.debtAmount}"/><br>
	*计算结果保留小数位数:<input id="decimals" name="decimals" value="${testCalcLoanValue.decimals}"/><br>
	当月利息为：<input id="invest" name="invest" value="${testCalcLoanValue.invest}"/><br>
		
	
	<br>
	<h1>债权价值计公式 (债权价值 = (下一结息日- 当日- 1)*12/365 * 当月利息+剩余本金)</h1>
	//债权价值金额
	*下一结息日:<input id="nextIvestDate" name="nextIvestDate" value="${testCalcLoanValue.nextIvestDate}"/>(日期格式 yyyy-MM-dd字符串 eg :2012-02-01)<br>
	*剩余本金:<input id="outstandindAmt" name="outstandindAmt" value="${testCalcLoanValue.outstandindAmt}"/><br>
	*总还款期数:<input id="totalnumPayments" name="totalnumPayments" value="${testCalcLoanValue.totalnumPayments}"/><br>
	*每期固定还款额度:<input id="repaymentAmount" name="repaymentAmount" value="${testCalcLoanValue.repaymentAmount}"/><br>
	*总还款本金:<input id="debtAmount" name="debtAmount" value="${testCalcLoanValue.debtAmount}"/><br>
	*计算结果保留小数位数:<input id="decimals" name="decimals" value="${testCalcLoanValue.decimals}"/><br>
	债权价值金额:<input id="loanValue" name="loanValue" value="${testCalcLoanValue.loanValue}"/><br>
	
	<input type="submit" value="提交"/><input type="button" value="返回" onclick="history.back();"/>
</form:form>